<?php Yii::beginProfile('EntirePage'); ?>
<?php $bootstrapUrl = Yii::app()->theme->baseUrl . '/bootstrap-3.1.1'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <link rel="shortcut icon" href="<?php echo Yii::app()->request->baseUrl; ?>/favicon.ico" />
        <link rel="stylesheet" href="<?php echo $bootstrapUrl; ?>/css/bootstrap.min.css" />
        <link rel="stylesheet" href="<?php echo $this->cssPath; ?>/main.css" />
        
        <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>
        <title><?php echo $this->pageTitle; ?></title>

        <!--[if lt IE 9]>
        <?php if (Environment::isProduction()): ?>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <?php else: ?>
            <script type="text/javascript" src="<?php echo $this->jsPath; ?>/html5shiv/html5shiv.js"></script>
        <?php endif; ?>
        <![endif]-->

    </head>
    <body>

        <div class="row">
            <div class="container header">
                <div class="col-md-2">
                    <?php
                    $this->widget('ext.widgets.LanguageSelectorPortlet', array(
                        'languageOptions' => Option::language(),
                        //'pickerType' => 'dropdown',
                    ));
                    ?>
                  
                    <?php $this->renderPartial('//layouts/_topMenu'); ?>
                </div>
            </div>
        </div>

        <?php //$this->renderPartial('//layouts/_navigationMenu'); ?>

        <div class="container body">
            <?php echo $content; ?>
        </div>

        <div id="footer">
            <div class="container">
            	<?php if(!Yii::app()->user->isGuest): ?>
					<a href="<?php echo $this->logoutUrl; ?>">Logout [<?php echo Yii::app()->user->displayName; ?>]</a>
				<?php endif; ?>  
                <?php
                Yii::beginProfile('footer-menu');
                $this->widget('zii.widgets.CMenu', array(
                    'items' => $this->footerMenu(),
                    'htmlOptions' => array('class' => 'footer-menu'),
                ));
                Yii::endProfile('footer-menu');
                ?>                
                <p class="text-muted"><?php echo Lang::t('footer.lbl.copyrights', array('{year}' => date('Y'))); ?></p>
            </div><!--container-->
        </div>
        <script src="<?php echo $bootstrapUrl; ?>/js/bootstrap.min.js"></script>
    </body>
</html>
<?php Yii::endProfile('EntirePage'); ?>